package com.zhxy.manager.dao;

import com.zhxy.manager.entity.Song;
import com.zhxy.manager.excel.SongExcel;
import com.zhxy.manager.vo.PageBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SongDao {
    //新增
    int add(Song song);
    //修改
    int update(Song song);
    //删除
    int del(int id);
    //查询
    List<Song> selectAll();
    //批量删除
    int delBatch(int[] ids);
    //条件查询
    List<Song> selectWhere(@Param("name") String name);
    //批量新增(batch批处理)
    int addBatch(List<SongExcel> songs);
}
